package com.pig4cloud.pig.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.item.api.pojo.Category;

import java.util.List;
import java.util.Map;

/**
 * Created by caoxuel on 2020/10/14 11:42
 * @author caoxuel
 */
public interface CategoryService extends IService<Category> {

    /**
     * 获得一级分类
     * @return
     */
    public List<Category> getCategoryName();

    /**
     * 根据parentId,获得下一级分类
     * @param categoryName
     * @return
     */
    public List<Category> getSecondaryClass(String categoryName);

    /**
     * 通过名称查询
     * @param name
     * @return
     */
    public Category getCategoryByName(String name);
}
